package com.vates.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class Main {
	
	private static final String NAME = "roy";
	
	public static void main(String[] args) {
		
		ApplicationContext context = new FileSystemXmlApplicationContext("src/main/resources/spring-beans.xml");
		
		MessagingService hello = (MessagingService) context.getBean("helloSrv");
		System.out.println(hello.sayMessage(NAME));
		
	}
}
